﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/_FrontEnd_Index.Master" AutoEventWireup="true" CodeBehind="DangKi.aspx.cs" Inherits="MyWeb.GUI.User.DangKi" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Script/Validate/jquery.validate.js"></script>
    <link href="/Content/css/stylesheet.css" rel="stylesheet" />

    <script type="text/javascript">
        jQuery.validator.addMethod("accept", function (value, element, param) {
            return value.match(new RegExp("." + param + "$"));
        });
        $(function () {
            $("#form1").validate({
                rules: {
                    '<%=txthoten.UniqueID%>': {
                        required: true,
                        maxlength: 50
                    },
                    '<%=txtEmail.UniqueID%>': {
                        required: true,
                        email: true
                    },
                    '<%=txtSdt.UniqueID%>': {
                        required: true,
                        number: true,
                        rangelength: [10, 12]
                    },
                    '<%=txtDiachi.UniqueID%>': {
                        required: true,
                    },
                    '<%=txtmk.UniqueID%>': {
                        required: true,
                        rangelength: [6, 20]
                    },
                    '<%=txtxacnhanmk.UniqueID%>': {
                        required: true,
                        equalTo: "#<%=txtmk.ClientID%>",
                    },
                    checkterm: {
                        required: true
                    }

                },
                messages: {
                    '<%=txthoten.UniqueID%>': {
                        required: "Vui lòng điền thông tin"
                    }
                }
            })
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="row">
        <div class="span9">
            <div class="register">

                <div class="titleHeader clearfix">
                    <h3>Đăng kí tài khoàn</h3>
                </div>
                <!--end titleHeader-->

                    <div class="form-horizontal">

                    <legend>&nbsp;&nbsp;&nbsp;&nbsp; Thông tin tài khoản</legend>

                    <div class="control-group success">
                        <label class="control-label" for="inputFirstName">Họ và tên: <span class="text-error">*</span></label>
                        <div class="controls">
                            <asp:TextBox ID="txthoten" runat="server" placeholder="Nguyễn Văn A"></asp:TextBox>
                        </div>
                    </div>
                    <!--end control-group-->

                    <div class="control-group error">
                        <label class="control-label" for="inputLastName">Email: <span class="text-error">*</span></label>
                        <div class="controls">
                            <asp:TextBox ID="txtEmail" runat="server" placeholder="nguyenvana@gmail.com"></asp:TextBox>
                        </div>
                    </div>
                    <!--end control-group-->

                    <div class="control-group">
                        <label class="control-label" for="inputEMAdd">Mật khẩu: <span class="text-error">*</span></label>
                        <div class="controls">
                            <asp:TextBox ID="txtmk" placeholder="**********" TextMode="Password" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <!--end control-group-->
                    <div class="control-group">
                        <label class="control-label" for="inputPass">Xác nhận mật khẩu: <span class="text-error">*</span></label>
                        <div class="controls">
                            <asp:TextBox ID="txtxacnhanmk" placeholder="**********" TextMode="Password" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="inputTele">Số điện thoại: <span class="text-error">*</span></label>
                        <div class="controls">
                            <asp:TextBox ID="txtSdt" placeholder="(02)-1598-548" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <!--end control-group-->

                    <div class="control-group">
                        <label class="control-label" for="inputFAX">Địa chỉ:</label>
                        <div class="controls">
                            <asp:TextBox ID="txtDiachi" placeholder="1A Tăng Nhơn Phú P.Phước Long Q.9" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <!--end control-group-->


                    <div class="control-group">
                        <div class="controls">
                            <label class="checkbox">
                                <input type="checkbox" id="checkterm"/>
                                Tôi đồng ý với <a href="#">điều khoản &amp; hình thức sử dụng của website</a>
                            </label>
                            <br>
                            <asp:Button ID="btnDangki" class="btn btn-primary" runat="server" Text="Đăng Kí" OnClick="btnDangki_Click" />
                        </div>
                    </div>
                    <!--end control-group-->
                    </div>
                <!--end form-->

            </div>
            <!--end register-->
        </div>
        <!--end span9-->


        <div class="span3">
            <div class="titleHeader clearfix">
                <h3>Chức năng</h3>
            </div>
            <!--end titleHeader-->
            <ul class="unstyled my-account">
                <li><a class="invarseColor" href="#"><i class="icon-caret-right"></i>Đăng kí & Đăng nhập</a></li>
                <li><a class="invarseColor" href="#"><i class="icon-caret-right"></i>Đặt Hàng</a></li>
                <li><a class="invarseColor" href="#"><i class="icon-caret-right"></i>Xem thông tin tài khoản</a></li>
                <li><a class="invarseColor" href="#"><i class="icon-caret-right"></i>Lịch sử mua hàng</a></li>
                <li><a class="invarseColor" href="#"><i class="icon-caret-right"></i>Tư vấn trực tuyến</a></li>
            </ul>
        </div>
        <!--end span3-->

    </div>
    <!--end row-->

</asp:Content>
